//定义银行账户实体
public class Bank {
    private String name;
    private String bankId;
    private String password;
    private double money;

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getBankId() {
        return bankId;
    }
    public void setBankId(String bankId) {
        this.bankId = bankId;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public double getMoney() {
        return money;
    }
    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "账户名：" + name + "\n银行卡号：" + bankId + "\n银行卡密码：" + password + "\n余额：" + money;
    }
    public Bank(String name, String bankId, String password, double money) {
        super();
        this.name = name;
        this.bankId = bankId;
        this.password = password;
        this.money = money;
    }
    public Bank() {
        super();
    }
}